package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * app版本对象 sys_app_version
 * 
 * @author ruoyi
 * @date 2024-09-19
 */
public class SysAppVersion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 版本号 */
    @Excel(name = "版本号")
    private String versionCode;

    /** 版本名称 */
    @Excel(name = "版本名称")
    private String versionName;

    /** 版本信息 */
    @Excel(name = "版本信息")
    private String versionInfo;

    /** forcibly = 强制更新, solicit = 弹窗确认更新, silent = 静默更新 */
    @Excel(name = "forcibly = 强制更新, solicit = 弹窗确认更新, silent = 静默更新")
    private String updateType;

    /** 版本下载链接（IOS安装包更新请放跳转store应用商店链接,安卓apk和wgt文件放文件下载链接） */
    @Excel(name = "版本下载链接", readConverterExp = "I=OS安装包更新请放跳转store应用商店链接,安卓apk和wgt文件放文件下载链接")
    private String downloadUrl;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    private String platformType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setVersionCode(String versionCode) 
    {
        this.versionCode = versionCode;
    }

    public String getVersionCode() 
    {
        return versionCode;
    }
    public void setVersionName(String versionName) 
    {
        this.versionName = versionName;
    }

    public String getVersionName() 
    {
        return versionName;
    }
    public void setVersionInfo(String versionInfo) 
    {
        this.versionInfo = versionInfo;
    }

    public String getVersionInfo() 
    {
        return versionInfo;
    }
    public void setUpdateType(String updateType) 
    {
        this.updateType = updateType;
    }

    public String getUpdateType() 
    {
        return updateType;
    }
    public void setDownloadUrl(String downloadUrl) 
    {
        this.downloadUrl = downloadUrl;
    }

    public String getDownloadUrl() 
    {
        return downloadUrl;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getPlatformType() {
        return platformType;
    }

    public void setPlatformType(String platformType) {
        this.platformType = platformType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("versionCode", getVersionCode())
            .append("versionName", getVersionName())
            .append("versionInfo", getVersionInfo())
            .append("updateType", getUpdateType())
            .append("downloadUrl", getDownloadUrl())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
